home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / dev / amos / AMOSL0495.lzh / AMOSLIST / 000106_svcs1.digex.net!amos-request_ Sat Apr 22 12:53:54 1995 remote from earth.msg < prev    next >
Internet Message Format  |  1995-05-01  |  2KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by earth.usa.net (8.6.10/8.6.10) with SMTP id MAA12928 for <lee.kitchens@georgia.com>; Sat, 22 Apr 1995 12:53:53 -0600
  2. Received: by svcs1.digex.net id AA07112
  3.   (5.67b8/IDA-1.5 for amos-out); Sat, 22 Apr 1995 12:35:27 -0400
  4. Received: from nfs2.digex.net by svcs1.digex.net with SMTP id AA07100
  5.   (5.67b8/IDA-1.5 for <amos@svcs1.digex.net>); Sat, 22 Apr 1995 12:35:23 -0400
  6. Received: from elixir.e.kth.se by nfs2.digex.net with SMTP id AA04680
  7.   (5.67b8/IDA-1.5 for <amos-list@access.digex.net>); Sat, 22 Apr 1995 12:34:41 -0400
  8. Received: from lumen.e.kth.se (lumen.e.kth.se [130.237.48.64]) by elixir.e.kth.se (8.6.8.1/8.6.6) with ESMTP id SAA09850 for <amos-list@access.digex.net>; Sat, 22 Apr 1995 18:33:10 +0200
  9. From: Tolga Turkoglu <earth!elixir.e.kth.se!e92_tot>
  10. Received: (e92_tot@localhost) by lumen.e.kth.se (8.6.8.1/8.6.6) id SAA10617; Sat, 22 Apr 1995 18:33:09 +0200
  11. Date: Sat, 22 Apr 1995 18:33:09 +0200
  12. Message-Id: <199504221633.SAA10617@lumen.e.kth.se>
  13. To: earth!access.digex.net!amos-list
  14. Subject: If vs On Proc
  15. Status: O
  16. X-Status: 
  17.  
  18.  
  19. Hello everybody,
  20.  
  21. I was wondering about which of these three routines 
  22. that are faster:
  23.  
  24. 1)
  25.     ...
  26.     MK=Mouse Key
  27.     MC=Mouse Click
  28.     If MC<>0
  29.       If MC=2
  30.         If MK=3
  31.           ...
  32.         Else
  33.           ...
  34.         End If
  35.       Else
  36.         If MK=3
  37.           ...
  38.         Else
  39.           ...
  40.         End If
  41.     Else
  42.       If MK=1
  43.         ...
  44.       Else
  45.         ...
  46.       End If
  47.     End If
  48.     ...
  49.  
  50.  
  51. 2)
  52.     ...
  53.     MK=Mouse Key
  54.     MC=Mouse Click
  55.     If MC=2 and MK=3 then ...
  56.     If MC=2 and MK<>3 then ...
  57.     If MC=1 and MK=3 then ...
  58.     If MC=1 and MK<>3 then ...
  59.     ...
  60.  
  61.  
  62. 3)
  63.     ...
  64.     MICE=Mouse Click
  65.     Rol.b 2,MICE
  66.     Add MICE,Mouse Key
  67.     On MICE Proc ZIP,ZIP,ZIP,ZIP,MICE_5,ZIP,MICE_7,...
  68.     ...
  69.  
  70. All three has both good and bad sides,but
  71. which one is faster?
  72.  
  73. I've heard that procedures should be avoided to make
  74. routines faster.Is it true always or is it true only on
  75. events like when a procedure is returning or receiving an
  76. argument? 
  77.  
  78.  
  79.  
  80.  
  81. Tolga
  82.